﻿@model orienta.ViewModels.Dependencia
@{
    ViewBag.Title = "Buscar";
}
<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />

<script src="@Url.Content("~/js/niftycube.js")"  type="text/javascript" ></script>
        <script src="@Url.Content("~/js/funciones.js")"  type="text/javascript" ></script>
        <script src="@Url.Content("~/js/solicitud.js")"  type="text/javascript" ></script>
        <script src="@Url.Content("~/js/calendario.js")" type="text/javascript" ></script>
        <script src="@Url.Content("~/js/ajax.js")" type="text/javascript" ></script>
        <script src="@Url.Content("~/js/midis.js")" type="text/javascript" ></script>
        
        <script src="@Url.Content("~/js/wick.js")" type="text/javascript" ></script>
        
        <link href="@Url.Content("~/css/wick.css")" rel="stylesheet" type="text/css" />


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.9.1.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.js")" type="text/javascript"></script>
<script src="@Url.Content("~/js/dependencias.js")" type="text/javascript"></script>

<script type="text/javascript">
    var dataDependencia;
    window.onload = function () {
        cargarAutoCompleteDependenciaAll();
    }
</script>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <br />
        <center>
            <div style="width: 840px;">
                <table  width="100%" cellpadding="0" border="0"  cellspacing="0">
                    <tr>
                        <td>
                            <table class="tablaPrincipal_MIDIS"  width="100%" cellpadding="3" border="0"  cellspacing="0">
                                <tr>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" border="0"  width="100%">
                                            <tr>
                                                <td>
                                                    <table width="100%" class="tablaInterna_MIDIS" cellpadding="0">
                                                        <tr><td>&nbsp;</td></tr>
                                                        <tr>
                                                            <td align="center">
                                                                <table width="99%" border="1" cellpadding="3" cellspacing="0" class="tablaPrincipalSin">
                                                                    <tbody class="tituloTextNormal">
                                                                        <tr align="left">
                                                                            <td>Hijos: <input type="checkbox" name="chkHijos" id="chkHijos" value="1" /></td>
                                                                            <td>Dependencia:</td>
                                                                            <td>
                                                                            @Html.TextBoxFor(model => model.sDescripcion, new { autocomplete = "OFF", records = "1", letra = "", dataSrc = "dataDependencia", size = "52", alt = "", @class = "cajaTextoMayuscula wickEnabledAuto", ondblclick = "javascript:limpiaCaja(this);" })
                                                                            <img src="../images/browse.gif" class="lupita2_MIDIS" alt="VER DEPENDENCIA" onclick="javascript:mostrarRegiones();" />
                                                                            <input type="button" name="Consultar" id="Consultar" value="Consultar" onclick="consultarDependencia();" />
                                                                            <input type="button" name="Nuevo" id="Nuevo" value="Nuevo" onclick="nuevaDependencia();" />
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                        </tr>
                                                        <tr><td>&nbsp;</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </center>
}    

<div id="divDependencia" style="display:none"></div>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tr><td align="center" style="background-color:#778CCA;"><img src="../../images/space.gif" alt=""  width="1" height="1" /></td></tr>
</table>

<div id="divProcesandoNuevaDep" style="display: none"></div>
<div id="divDependenciaNueva"></div>
